using PomodoroMinutes.MVVMBase;
using PomodoroMinutes.Models;

namespace PomodoroMinutes.Commadns
{
	public class CommandAddDisturbanceCommand : CommandBase
	{
		private readonly MinutesViewModel _minutesViewModel;

		public CommandAddDisturbanceCommand(MinutesViewModel minutesViewModel)
		{
			_minutesViewModel = minutesViewModel;
		}

		public override void Execute(object parameter)
		{
			_minutesViewModel.DisturbanceCount++;
		}

		public override bool CanExecute(object parameter)
		{
			return true;
		}
	}
}